package com.jt9003.service;

import com.jt9003.pojo.User1;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface User1Service {
    //增加用户
    public int insertUser(User1 user1);
    //根据Id删除用户
    public int deleteUserById(int uId);
    //根据Id修改用户
    public int updateUserById(User1 user1);
    //根据Id修改用户状态
    public int updateUserStateById(User1 user1);
    //根据用户状态修改用户离职时间
    public int updateUserQuitDateByState(User1 user1);
    //根据ID修改用户权限
    public int updateUserAuthorityById(User1 user1);
    //根据用户状态修改用户离职时间
    public int updateUserQuitDateById(User1 user1);
    //根据用户名密码查询用户
    public User1 selectUserByLoginNameAndPwd(String uLoginName, String uPassword);
    //根据用户的名称或拼音首字母进行查询
    public List<User1> selectUserByNameOrPinyinInitials(String uLoginName, Integer start, Integer limit);
    //根据用户的名称或拼音首字母进行查询数量
    public int getUsersCountByResult(String uLoginName);
    //直接查询所有用户
    public List<User1> selectUsersList(Integer start, Integer limit);
    //根据ID查询所属用户的权限
    public User1 selectUserAuthorityById(int uId);
    //根据ID查询所属用户
    public User1 selectUserById(int uId);
    //根据用户名查询所属用户的权限
    public User1 selectUserAuthorityByuLoginName(String uLoginName);
    //根据Id批量删除用户
    public int deleteUsersById(List<Integer> idList);
    //查询用户数量
    public int getUsersCount();
    //根据用户名查询用户信息
    public User1 selectUserByuLoginName(String uLoginName);

}
